<div class="row dialog">
    <div class="col-md-12">
        <div class="card">
            <div class="card-header card-header-inverse">
                <h4 class="card-header-title">
                    创建管理帐号
                </h4>
            </div>
            <div class="card-content">
                <form class="pageForm" method="post" action="<?= \yii\helpers\Url::to(['/masters/create/'])?>" data-validator-option="{theme: 'yellow_top',timely:2, focusCleanup:true}">
                    <div class="row">&nbsp;</div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">发布类型</label>
                                <select name="txt_RoleId" class="form-control form-control-sm" data-style="select-with-transition" data-size="7" data-val="<?= @$master['RoleId']?>">
                                    <?php foreach ($rList as $item) :?>
                                    <option value="<?= $item['Id']?>"><?= $item['RoleName']?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">帐号名称</label>
                                <input type="text" name="txt_UserName" class="form-control form-control-sm" data-rule="帐号名称:required;length(4~20)" value="<?= @$master['UserName']?>" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">登录密码</label>
                                <input type="password" name="txt_LoginPass" class="form-control form-control-sm" data-rule="登录密码:length(6~32)" value="" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">确认密码</label>
                                <input type="password" name="txt_rLoginPass" class="form-control form-control-sm" value="" data-rule="确认密码:match(txt_LoginPass);length(6~32)" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">交易密码</label>
                                <input type="password" name="txt_UserPass" class="form-control form-control-sm" data-rule="交易密码:match[neq, txt_LoginPass];length(6~32)" value="" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <label class="control-label">确认密码</label>
                                <input type="password" name="txt_rUserPass" class="form-control form-control-sm" value="" data-rule="确认密码:match(txt_UserPass);length(6~32)" maxlength="32">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <div class="checkbox">
                                    <input type="checkbox" name="txt_UserState" id="txt_UserState" value="<?= @($master['UserState'] ? 1 : 0)?>">
                                    <label for="txt_UserState">
                                        是否启用
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group label-floating is-empty is-info">
                                <input type="hidden" name="txt_ID" value="<?= @$master['MasterId']?>" />
                                <button type="submit" class="btn btn-fill btn-primary pull-right">确认提交</button>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div>
        </div>
    </div>
</div>